#ifndef tr_h
#define tr_h

#include "Arduino.h"
#include "sensor.h"
#include "relay.h"
#include "controller.h"

class TR : 
public Controller {
public:
  TR(String id, Sensor& s, Relay& r);
  int getMinTemp();
  Sensor& getSensor();
  Relay& getRelay();

  void setCommand(String command);
  boolean check();
  String getStatus();  
private:
  Sensor& _sensor;
  Relay& _relay;
  int _minTemp;
  int _delta;
};

#endif

